package com.powernode.feign;

import com.powernode.domain.Prod;
import com.powernode.feign.fallbackfactory.MemberProductFeignFallbackFactory;
import com.powernode.model.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @create: 2024/7/24
 * @author: gyhe10
 * @description: 会员业务模块调用商品业务模块feign接口
 **/

@FeignClient(name = "product-service", fallbackFactory = MemberProductFeignFallbackFactory.class)
public interface MemberProductFeign {

    @GetMapping("prod/prod/getProdListByIds")
    public Result<List<Prod>> getProdListByIds(@RequestParam List<Long> prodIds);
}
